package net.majodali.glasshouse.filesystem;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;

import net.majodali.glasshouse.Resource;

public class FileResource implements Resource {
	FileSystemProject project;
	private final File file;
	private String fullName;
	
	public FileResource(String fullName, File file) {
		this.file = file;
		this.fullName = fullName;
	}
	
	@Override
	public String getFullName() {
		return fullName;
	}

	@Override
	public InputStream getInputStream() throws IOException {
		return new FileInputStream(file);
	}

	@Override
	public OutputStream getOutputStream() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getLastModified() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long getLength() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Map<String, Object> getMetadata() {
		// TODO Auto-generated method stub
		return null;
	}

}
